<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="keywords" content="">
    <meta name="description" content="">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>常用语</title>
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/im.css">
    <style>
        html,
        body {
            /* height: 100%; */
            overflow: hidden;
            background: #f7f7f7;
        }
    </style>
</head>

<body>
    <div class="wrap">
        <div class="input_common">
            <textarea class="input_q" placeholder="现有最主要的不适及症状（请详细描述）"></textarea>
            <div class="num_text">0/300</div>
        </div>
        <div class="footer1 footer2">保存</div>
    </div>

    <script src="js/jquery-1.8.3.js"></script>
    <script src="js/im.js"></script>
    <script>
        $(".input_common .input_q").keyup(function() {
            var val = $(this).val();
            var len = val.length;
            console.log(len)
            $(".num_text").html(len + "/300")
        })
    </script>
</body>

</html>